/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.hycreate.platform.modules.crm.calendar;

import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hycreate.platform.common.persistence.Page;
import com.hycreate.platform.common.service.CrudService;
import com.hycreate.platform.modules.sys.entity.User;

/**
 * 日程的管理Service
 * @author ly
 * @version 2016-12-03
 */
@Service
@Transactional(readOnly = true)
public class HycrmCalendarService extends CrudService<HycrmCalendarDao, HycrmCalendar> {

	public HycrmCalendar get(String id) {
		return super.get(id);
	}
	
	public List<HycrmCalendar> findList(HycrmCalendar hycrmCalendar) {
		return super.findList(hycrmCalendar);
	}
	
	public Page<HycrmCalendar> findPage(Page<HycrmCalendar> page, HycrmCalendar hycrmCalendar) {
		return super.findPage(page, hycrmCalendar);
	}
	
	@Transactional(readOnly = false)
	public void save(HycrmCalendar hycrmCalendar) {
		super.save(hycrmCalendar);
	}
	
	@Transactional(readOnly = false)
	public void delete(HycrmCalendar hycrmCalendar) {
		super.delete(hycrmCalendar);
	}
	
	public List<User> findUserUnused(Date selectdate,String deptId){
		return dao.findUserUnused(selectdate,deptId);
	}
	
}